package com.tencent.sr.iris.activity.interfaces.client.activity;

import com.tencent.sr.iris.activity.interfaces.request.acticity.ActivityAndTaskRequest;
import com.tencent.sr.iris.activity.interfaces.response.activity.ActivityAndTaskResponse;
import com.tencent.sr.rmall.common.primitive.HttpResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "iris-activity-core-service", contextId = "ActivityTaskClient",
        path = "/api/v1/iris/iris-activity-core-service/activity/task")
public interface ActivityTaskClient {

    @PostMapping("getActivityAndTask")
    @ApiOperation(value = "查询月份限额列表", httpMethod = "POST")
    HttpResult<ActivityAndTaskResponse> getActivityAndTask(
            @Validated @RequestBody ActivityAndTaskRequest request);
}
